<!-- 外协管理 -->
<template>
  <div class="outsourcingManagement">
    <el-card class="out-card-title">
      <el-tabs
        v-model="activeName"
        class="outsourcingManagement-tabs"
        @tab-click="handleClick"
      >
        <el-tab-pane label="全单外协" name="1" />
        <el-tab-pane label="工序外协(预排)" name="2" />
        <el-tab-pane label="工序外协(ERP)" name="3" />
      </el-tabs>
    </el-card>
    <full-order-outsourcing v-if="activeName == 1" />
    <outsourcing v-if="activeName == 2" />
    <erp v-if="activeName == 3" />
  </div>
</template>

<script>
import fullOrderOutsourcing from '@/views/outsourcingManagement/fullOrderOutsourcing'
import outsourcing from '@/views/outsourcingManagement/outsourcing'
import erp from './erp'
export default {
  // 这里是名称
  name: '',
  // import引入的组件需要注入到对象中才能使用
  components: { fullOrderOutsourcing, outsourcing, erp },
  props: {},
  data() {
    // 这里存放数据
    return {
      activeName: '1'
    }
  },
  // 监听属性 类似于data概念
  computed: {},
  // 监控data中的数据变化
  watch: {},
  // 生命周期 - 创建完成(可以访问当前this实例)
  created() {},
  // 生命周期 - 挂载完成(可以访问DOM元素)
  mounted() {},
  beforeCreate() {}, // 生命周期 - 创建之前
  beforeMount() {}, // 生命周期 - 挂载之前
  beforeUpdate() {}, // 生命周期 - 更新之前
  updated() {}, // 生命周期 - 更新之后
  beforeDestroy() {}, // 生命周期 - 销毁之前
  destroyed() {}, // 生命周期 - 销毁完成
  activated() {}, // 如果页面有keep-alive缓存功能,这个函数会触发
  // 方法集合
  methods: {
    handleClick(val) {}
  }
}
</script>
<style scoped lang="scss">
.outsourcingManagement {
  width: 100%;
  height: 100%;
  ::v-deep .outsourcingManagement-tabs .el-tabs__nav-wrap::after {
    width: unset;
  }
  .out-card-title {
    margin-bottom: 12px;
    ::v-deep .el-card__body {
      padding-bottom: unset;
    }
    ::v-deep .el-tabs__header {
      margin-bottom: 4px;
    }
  }
}
</style>
